<!DOCTYPE html>
<style>
  .foo {
    ::before:where(&) {
      color: red;
    }
  }
</style>
<div class=foo></div>
